#ifndef CLIENTWIDGET_H
#define CLIENTWIDGET_H

#include <QWidget>
#include <QTcpSocket>

namespace Ui {
class clientwidget;
}

class clientwidget : public QWidget
{
    Q_OBJECT

public:
    explicit clientwidget(QWidget *parent = nullptr);
    ~clientwidget();

private slots:
    void on_Buttonconnect_clicked();

    void on_Buttonsend_clicked();

    void on_Buttonclose_clicked();

private:
    Ui::clientwidget *ui;
    QTcpSocket *tcpSocket; //声明套接字 客户端只有一个通信套接字

};

#endif // CLIENTWIDGET_H
